package com.lmk;

public class Test01 {
    public static void main(String[] args) {
        for (int i = 0; i < 20; i++) {
            if (i % 2 != 0) {
                continue;
            }
            System.out.println(i);
            if (i == 10) {
                break;
            }
        }


        int[] a = new int[]{1, 2, 3, 4, 5, 6};
        int max = a[0];
        for (int x = 0; x < a.length; x++) {
            if (a[x] > max) {
                max = a[x];
            }
        }
        System.out.println(max);
        int min=a[0];
        for(int x=0; x<a.length; x++){
            if(a[x]<min){
                min=a[x];
            }
        } System.out.println(min);


    }
}



